﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPagePrivate.master" AutoEventWireup="true" CodeFile="EventChange.aspx.cs" Inherits="Pages_Private_EventChange" %>
<%@ Register Src="~/UserControls/jQueryCalendar.ascx" TagName="jQueryCalendar" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <UC:jQueryCalendar ID="ucjQueyrCalendar" runat="server" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add Event</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    <div>
        <a href="/Pages/Private/EventList.aspx">Back to Event List</a>
    </div>    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--Event Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Manage Events"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define an Event with Description and Event Date"></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:17%;" />
                        <col />
                    </colgroup>
                    <tr>
					    <td>Event Title<span class="requiredMark">*</span></td>
					    <td style="padding-right:300px;">
						    <asp:TextBox ID="txtTitle" MaxLength="250" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvTitle" runat="server"
							    ControlToValidate="txtTitle" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Event Title." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>						   
					    </td>
				    </tr>
				    <tr>
					    <td>Description<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtDescription" TextMode="MultiLine" MaxLength="500" runat="server" style="height:100px;"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvDescription" runat="server"
							    ControlToValidate="txtDescription" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Description." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Event Date</td>
					    <td>
						    <asp:TextBox ID="txtEventDate" MaxLength="150" runat="server"></asp:TextBox>
						    <%--<asp:RequiredFieldValidator ID="rfvEventDate" runat="server"
							    ControlToValidate="txtEventDate" SetFocusOnError="true"
							    ErrorMessage="<br/>Please Select a Event Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CustomValidator ID="cvEventDate" runat="server"
							    ControlToValidate="txtEventDate" SetFocusOnError="true"
							    ClientValidationFunction="ValidateDate"
							    ErrorMessage="<br/>Please Select a Valid Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>--%>
					    </td>
				    </tr>
                    <tr>
					    <td>Venue</td>
					    <td>
						    <asp:TextBox ID="txtVenue" MaxLength="150" runat="server"></asp:TextBox>						    
					    </td>
				    </tr>
                    <tr>
					    <td>Picture</td>
					    <td>
                            <div id="divEventPreviewContainer" runat="server" visible="false" class="AdverstisementContainer"></div>
						    <asp:FileUpload ID="fuImageFile" runat="server" />
                            <asp:CustomValidator ID="cvImageFile" runat="server"
							    SetFocusOnError="true" Display="Dynamic" ValidateEmptyText="true"
                                OnServerValidate="cvImageFile_OnServerValidate"
							    ErrorMessage="Please Select a Valid Image File for Event."
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>						    
					    </td>
				    </tr>
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Send" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <asp:Button ID="btnList" runat="server" Text="Event List" CssClass="ButtonInActive" OnClick="btnList_Click" />            
            </div>
        </div>
        <%--Event Information Group Box End--%>
   </asp:Panel>
</asp:Content>

